<template>
   <table>
        <tr>
            <td>用户账号</td>
            <td>
                <input type="text" v-model="info.username"/>
            </td>
        </tr>
        <tr>
            <td>用户密码</td>
            <td>
                <input type="password" v-model="info.pwd"/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <button type="button" @click="Login">登录</button>
            </td>
        </tr>
    </table>
</template>
<script setup lang="ts">
import {ref} from 'vue';
const info=ref({
    username:"",
    pwd:""
})
const Login=()=>{
    alert("账户"+info.value.username+"密码"+info.value.pwd);
   
        return;
}
</script>